class Solution {
public:
    vector<int> runningSum(vector<int>& nums) {
        int i=1;
        while(i<nums.size()){
            nums[i] = nums[i-1]+nums[i];
            i++;
        }
        return nums;
    }
};